﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Lswweb.Model;

namespace Lswweb.IDAL
{
    public interface ICommentary
    {
        int Insert(CommentaryInfo commentary);

        bool Delete(int commentary);

        bool Update(CommentaryInfo commentary);

        CommentaryInfo GetCommentary(int id);

        IList<CommentaryInfo> GetCommentaryByUser(int userId, int pageIndex, int pageSize, out int totalRecord);

        IList<CommentaryInfo> GetCommentaryByPrdocutCategory(int productCategoryId,int pageIndex,int pageSize,out int totalRecord);

        IList<CommentaryInfo> GetCommentary(int productId, int pageIndex, int pageSize, out int totalRecord);

        IList<CommentaryInfo> GetCommentary(bool? isBack,int pageIndex, int pageSize, out int totalRecord);
    }
}
